package models

import "time"

type Favorite struct {
	ID        int64     `gorm:"primaryKey;autoIncrement;comment:主键"`
	UserID    int64     `gorm:"not null;default:0;index:fk_user_favorite;comment:用户id"`
	VideoID   int64     `gorm:"not null;default:0;index:fk_video_favorite;comment:视频id"`
	CreatedAt time.Time `gorm:"comment:创建时间"`
	UpdatedAt time.Time `gorm:"autoUpdateTime;comment:更新时间"`
	DeletedAt int64     `gorm:"not null;default:0;comment:软删除"`
}

func (Favorite) TableName() string {
	return "favorite"
}
